using Grpc.Core;

namespace GrpcServer.Services;

public class EchoService : GrpcServer.EchoService.EchoServiceBase {
    public override Task<EchoReply> Echo(EchoMessage request,
        ServerCallContext context) {
        return Task.FromResult(new EchoReply {
            Message = $"You sent me {request.Message}"
        });
    }
}